home *** CD-ROM | disk | FTP | other *** search
- Path: news.sprintlink.net!datalytics!news
- From: Rob Stewart <stew@datalytics.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Help a newbie Idiot... PLEASE!
- Date: 8 Jan 1996 19:46:58 GMT
- Organization: Datalytics, Inc
- Message-ID: <4crsbi$h4r@gold.datalytics.com>
- References: <dilcherDKqG0r.4rE@netcom.com>
- NNTP-Posting-Host: pc071.datalytics.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
-
- dilcher@cueva.com (Jeff Dilcher) wrote:
- >I am taking a C class at school, and thought that I would buy a
- >compiler to do some of the assignments at home.
- >
- >I picked up Borland C++ version 4.5, because, on the box it said it
- >would handle regular C programming, and I thought that lateron
- >I might get into some of the more advanced features.
-
- This was right approach. C++ is an extension to C (there are
- only a few things in C that C++ changes).
-
- >I simply want to edit and compile a no frills C program for dos.
- >Could someone with this software tell me how to do this?
-
- I don't have BC++, but if your files have an extension of .C,
- they will be treated as C and not C++.
-
- > All the
- >documentation is geared toward C++, but I am told I can still
- >use it for just plain C. Whenever I start to edit files, they seem
- >to default to the Cpp extensions, when I just want to edit
-
- You should be able to do a File|Save As to rename the file
- when you save it. In fact, doesn't each new file have a name
- like Untitled.cpp or something similar? When you save it, I
- suspect the IDE will prompt you to supply a better filename.
- When you do that, just give it a .C extension.
-
- >and
- >compile simple C programs.
-
- You can write straight C code in a .CPP file with impunity.
- The only problem is that the compiler will allow you to do
- things that C++ has added (like function overloading) that is
- not legal C. Your instructor may not like that.
-
- --
- Robert Stewart | My opinions are usually my own.
- Datalytics, Inc.
- (513)226-7700
- stew@datalytics.com
-
-
-